﻿using System;
using System.Collections.Generic;
using System.Linq;
using SqlSugar;
namespace Chat_Model
{
    /// <summary>
    /// 用户文章表
    ///</summary>
    [SugarTable("lar_article")]
    public class LarArticle
    {
        /// <summary>
        /// 文章ID 
        ///</summary>
         [SugarColumn(ColumnName="id" ,IsPrimaryKey = true ,IsIdentity = true  )]
         public string Id { get; set; }
        /// <summary>
        /// 用户ID 
        ///</summary>
         [SugarColumn(ColumnName="user_id"    )]
         public string UserId { get; set; }
        /// <summary>
        /// 分类ID 
        /// 默认值: 0
        ///</summary>
         [SugarColumn(ColumnName="class_id"    )]
         public string ClassId { get; set; }
        /// <summary>
        /// 笔记关联标签 
        /// 默认值: 
        ///</summary>
         [SugarColumn(ColumnName="tags_id"    )]
         public string TagsId { get; set; }
        /// <summary>
        /// 文章标题 
        /// 默认值: 
        ///</summary>
         [SugarColumn(ColumnName="title"    )]
         public string Title { get; set; }
        /// <summary>
        /// 文章摘要 
        /// 默认值: 
        ///</summary>
         [SugarColumn(ColumnName="abstract"    )]
         public string Abstract { get; set; }
        /// <summary>
        /// 文章首图 
        /// 默认值: 
        ///</summary>
         [SugarColumn(ColumnName="image"    )]
         public string Image { get; set; }
        /// <summary>
        /// 是否星标文章(0:否  1:是) 
        /// 默认值: 0
        ///</summary>
         [SugarColumn(ColumnName="is_asterisk"    )]
         public string IsAsterisk { get; set; }
        /// <summary>
        /// 笔记状态 1:正常 2:已删除 
        /// 默认值: 1
        ///</summary>
         [SugarColumn(ColumnName="status"    )]
         public string Status { get; set; }
        /// <summary>
        /// 添加时间 
        ///</summary>
         [SugarColumn(ColumnName="created_at"    )]
         public DateTime? CreatedAt { get; set; }
        /// <summary>
        /// 最后一次更新时间 
        ///</summary>
         [SugarColumn(ColumnName="updated_at"    )]
         public DateTime? UpdatedAt { get; set; }
        /// <summary>
        /// 笔记删除时间 
        ///</summary>
         [SugarColumn(ColumnName="deleted_at"    )]
         public DateTime? DeletedAt { get; set; }
    }
}
